import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class LiveIndex extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('腾讯直播'),
      ),
      body: Container(
        child: Center(
          child: ListView(
            children: <Widget>[
              ListTile(
                title: Text('摄像头直播'),
                trailing: Icon(Icons.arrow_right),
                onTap: () => Navigator.pushNamed(context, '/livePusher'),
              ),
              ListTile(
                title: Text('播放直播'),
                trailing: Icon(Icons.arrow_right),
                onTap: () => Navigator.pushNamed(context, '/liveVideo'),
              ),
            ],
          ),
        ),
      ),
    );
  }
}